import request from '@/utils/request'

export function getCarousels() {
  return request({
    url: '/api/carousel/list',
    method: 'get'
  })
}

export function saveCarousel(data) {
  return request({
    url: '/api/carousel',
    method: 'post',
    data
  })
}

export function updateCarousel(data) {
  return request({
    url: '/api/carousel',
    method: 'put',
    data
  })
}

export function deleteCarousel(id) {
  return request({
    url: `/api/carousel/${id}`,
    method: 'delete'
  })
} 